package com.nobug.shudu;

import java.util.List;

/**
 * @author 389561407@qq.com
 * @version 1.0
 * @since 2022-12-26
 */
public class Test {
    public static void main(String[] args) {



        Sudoku sudoku = new Sudoku();
//        Matrix puzzle = sudoku.init(1).get(0);
//        puzzle.print();

        //准备好一个问题数独
        Matrix matrix = new Matrix(9, 9);
        matrix.set(0,0,6);
        matrix.set(0,1,3);
        matrix.set(0,2,6);
        matrix.set(0,3,2);
        matrix.print();

        //获取答案
        List<Matrix> solve = sudoku.solve(matrix);
        System.out.println(solve.size());
        solve.get(0).print();



    }
}
